f = open('input.txt')
result = list()
for line in f.readlines():               
    line = line.strip()              
    result.append(line)
result.sort()       
a = str(result)
str_list = a.split()
print (len(str_list))

